﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Content.Master" Inherits="System.Web.Mvc.ViewPage<MethodWorx.CMS.UI.Models.CreateContentItemModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create Content Item
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create Content Item</h2>
    <%using(Html.BeginForm()){ %>
        <%=Html.Hidden("id")%>
        <div class="formItem">
                <label>Parent Page:</label>
                <div style="width:250px;float:left;padding-right:10px;"><%=Model.Request.Page.Name%></div>
                <img id="parentPageInfo" style="" src="<%=Url.Content("~/Images/icons/information.png")%>" title="<%=Model.Request.Page.Name %> - <%=Model.Request.Page.Description %>"/>
        </div>
        <%=Html.EditorFor(m => m.Request, new { contentTemplateSelectList = this.Model.GetContentTemplateSelectList() } ) %>
        <%=Html.FormButtons(
                (b) =>
                {
                    b.Submit("create", "Create");
                    b.Submit("cancel", "Cancel");
                }
            ) %>
    <%} %>
</asp:Content>
